package com.ktjy.mapper.user;

import com.ktjy.pojo.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StorageRecordMapper {

    /**
     * 查询入库表
     * @param goodsName
     * @param supplierId
     * @param payStatus
     * @return
     */
    public List<StorageRecord> getList(@Param("goodsName")String goodsName
            ,@Param("supplierId") Long supplierId,@Param("payStatus") Integer payStatus);


    public List<StorageRecord> getListSupplierName(@Param("goodsName")String goodsName
            ,@Param("supplierId") Long supplierId,@Param("payStatus") Integer payStatus);

    /**
     * ch04上机4数组方法实现
     */
    public List<StorageRecord> getStoageList(Long[] storage);

    /**
     * ch04上机4集合方法实现
     */
    public List<StorageRecord> getStoageListInfo(List<Long> storageList);

    /**
     * ch04上机5
     */
    public List<StorageRecord> getStoageMap(Map<String,Object> map);

    /**
     *分页查询
     */
    public List<StorageRecord> selectListPage(@Param("pageBegin") Long pageBegin,
                                              @Param("pageSize")Long pageSize);
}
